<template>
  <div>
    <h1 v-if="error.statusCode" class="errorActive">{{ error.message }}</h1>
    <h1 v-else>应用发送异常</h1>
    <nuxt-link to="/">返回首页</nuxt-link>
  </div>
</template>
<script>
export default {
  //接收错误信息 error：{statusCode,message}
  props: ["error"]
};
</script>

<style scoped>
.errorActive {
  color: red;
}
</style>
